package com.xinghen.common.base.properties;

import lombok.Data;

/**
 * @author xinghen
 * @ClassName: QiniuProperties
 * @Package: com.xinghen.common.base.properties
 * @Description 七牛云相关配置
 * @create 2018-04-12 10:15
 */
@Data
public class QiniuProperties {

    /**
     * 七牛云密钥相关配置
     */
    private QiniuKeyProperties key = new QiniuKeyProperties();

    /**
     * 七牛云OSS相关配置
     */
    private QiniuOssProperties oss = new QiniuOssProperties();

    /**
     * 七牛云密钥相关配置
     */
    @Data
    public class QiniuKeyProperties {

        private String accessKey;

        private String secretKey;

    }

    /**
     * 七牛云OSS相关配置
     */
    @Data
    public class QiniuOssProperties {

        private String privateHost;

        private String publicHost;

        private Long fileMaxSize;

    }
}
